cmake_minimum_required(VERSION 3.12)

project(test)
if (MSVC_VERSION GREATER_EQUAL "1900")
    include(CheckCXXCompilerFlag)
    CHECK_CXX_COMPILER_FLAG("/std:c++latest" _cpp_latest_flag_supported)
    if (_cpp_latest_flag_supported)
        add_compile_options("/std:c++latest")
    endif()
endif()
# lib
set(TEST "test")
aux_source_directory("." TEST_SOURCE)
message(STATUS ${TEST_SOURCE})

add_executable(${PROJECT_NAME} ${TEST_SOURCE})

target_link_libraries(${PROJECT_NAME} PRIVATE asio)
target_link_libraries(${PROJECT_NAME} PRIVATE net-common)
